
#include "method.h"

void Method::write(GraphStream * s)
{
	this->accept(s);

	fprintf(s->stream,"\tnode_%d [label=\"Method node\" shape=\"rectangle\"]\n", this->number());
	c_methodVarList->write(s);
	fprintf(s->stream,"\tnode_%d -> node_%d [label=\"names and parameters\"]\n",this->number(),c_methodVarList->number());
	c_stmtList->write(s);
	fprintf(s->stream,"\tnode_%d -> node_%d [label=\"statment list\"]\n",this->number(),c_stmtList->number());

}